package com.zgz.underwrite.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="InsuredCvrg")
public class InsuredCvrg implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6765678472408610892L;

	@Id
	@GenericGenerator(name="idGenerator", strategy="uuid") 
	@GeneratedValue(generator="idGenerator") 
	private String insuredCvrgId;

	@ManyToOne
	@JoinColumn(name="SAppNo")
	private InsuranceApplication insuranceApp;

	@ManyToOne
	@JoinColumn(name="SCvrgNo")
	private Coverage cvrg;

	private Double NAmount;// 保额/限额
	private Double NRate;// 费率
	private Double NBasePrm;// 基本保费
	private Double NBefPrm;// 折前保费
	private Double NDisCoef;// 优惠系数
	private Double NPremium;// 实交保费
	
	public Double getNAmount() {
		return NAmount;
	}
	public void setNAmount(Double nAmount) {
		NAmount = nAmount;
	}
	public Double getNRate() {
		return NRate;
	}
	public void setNRate(Double nRate) {
		NRate = nRate;
	}
	public Double getNBasePrm() {
		return NBasePrm;
	}
	public void setNBasePrm(Double nBasePrm) {
		NBasePrm = nBasePrm;
	}
	public Double getNBefPrm() {
		return NBefPrm;
	}
	public void setNBefPrm(Double nBefPrm) {
		NBefPrm = nBefPrm;
	}
	public Double getNDisCoef() {
		return NDisCoef;
	}
	public void setNDisCoef(Double nDisCoef) {
		NDisCoef = nDisCoef;
	}
	public Double getNPremium() {
		return NPremium;
	}
	public void setNPremium(Double nPremium) {
		NPremium = nPremium;
	}
	public void setInsuredCvrgId(String insuredCvrgId) {
		this.insuredCvrgId = insuredCvrgId;
	}
	public String getInsuredCvrgId() {
		return insuredCvrgId;
	}
	public void setInsuranceApp(InsuranceApplication insuranceApp) {
		this.insuranceApp = insuranceApp;
	}
	public InsuranceApplication getInsuranceApp() {
		return insuranceApp;
	}
	public void setCvrg(Coverage cvrg) {
		this.cvrg = cvrg;
	}
	public Coverage getCvrg() {
		return cvrg;
	}
}
